<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>ajax</title>
    <script src="js/lib/require.js"></script>
</head>
<body>
<input type="button" value="获取数据" id="getData"/>

<div id="serverData">

</div>
<script type="text/javascript">
    require.config({
        baseUrl: "js"
    });
    require(["js/main.js"]);
</script>
</body>
</html>